package com.lemon.components.common.result;

import java.util.List;

public class PageResult<T> extends ResultBase{

	private int pageSize;
	private int count;
	private int currentPageNo;
	private List<T> data;
	private String msg;
	private int code = 0;
	
	public int getPageSize() {
		return pageSize == 0?50:pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getCurrentPageNo() {
		return currentPageNo;
	}
	public void setCurrentPageNo(int currentPageNo) {
		this.currentPageNo = currentPageNo;
	}
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	@Override
	public String toString() {
		return "{pageSize:\"" + pageSize + "\", count:\"" + count + "\", currentPageNo:\"" + currentPageNo + "\", data:\"" + data + "\", msg:\"" + msg + "\", code:\"" + code + "}";
	}
	
	
}
